﻿using System.Collections.Generic;
using System.Configuration;
using System.Linq;

namespace SmartFramework.Core.Pages {
	public static class SFSettings {
		public static List<string> GetNameSpaces()
		{
			return ConfigurationManager
				.AppSettings.Get("PageFactoryNameSpaces")
				.Split(';').ToList();
		}

		public static string GetViewStatePath()
		{
			return ConfigurationManager.AppSettings.Get("ViewStateFolder");
		}

		public static string GetConfigByKey(string key)
		{
			return ConfigurationManager.AppSettings.Get(key);
		}
	}
}
